package cn.edu.gduf.luowowo.article.service.impl;

import cn.edu.gduf.luowowo.article.domain.DestinationMonth;
import cn.edu.gduf.luowowo.article.mapper.DestinationMonthMapper;
import cn.edu.gduf.luowowo.article.service.IDestinationMonthService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DestinationMonthServiceImpl implements IDestinationMonthService {
    @Autowired
    private DestinationMonthMapper destinationMonthMapper;





    @Override
    public DestinationMonth get(Long id) {
        return destinationMonthMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<DestinationMonth> listAll() {
        return destinationMonthMapper.selectAll();
    }



    @Override
    public List<DestinationMonth> queryDestAndMon( ) {

        return destinationMonthMapper.selectMonDests();
    }




}
